Carbon


SPBCloseDevice

Header: Sound.h Carbon status: Supported

Closes a sound input device.

OSErr SPBCloseDevice (
    SInt32 inRefNum
);
Parameter descriptions
inRefNum

The device reference number of the sound input device to close.

function result

A result code.

DISCUSSION

The SPBCloseDevice function closes a device that was previously opened by SPBOpenDevice and whose device reference number is specified in the inRefNum parameter.

SPECIAL CONSIDERATIONS

Because the SPBCloseDevice function moves or purges memory, you should not call it at interrupt time.

AVAILABILITY

Supported in Carbon. Available in Carbon 1.0.2 and later when running Mac OS 8.1 or later.


© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)